using System;
using System.Text;
using System.Reflection;
using System.ServiceModel;
using System.Collections.Generic;
using System.Runtime.Serialization;
using TDS = Tridion.ContentManager.Interop.TDS;
using TDSDefines = Tridion.ContentManager.Interop.TDSDefines;



#pragma warning disable 649
namespace Tridion.Gateway
{
	[DataContract]
	public class Page:Facade
	{
        internal Page(TDS.Page Page, bool ShallowCopy)
            : base(typeof(TDS._Page), Page, ShallowCopy)
		{
		}

		[DataMember(Name="ItemType")]
		private TDSDefines.ItemType itemtype;
		public TDSDefines.ItemType ItemType
		{
			 get { return itemtype; }
		}


		[DataMember(Name="ID")]
		private String id;
		public String ID
		{
			 get { return id; }
		}


		[DataMember(Name="Info")]
		private Info info;
		public Info Info
		{
			 get { return info; }
		}


		[DataMember(Name="Title")]
		private String title;
		public String Title
		{
			 get { return title; }
			 set { title = value; }
		}


        //TODO:Fix
        //[DataMember(Name="OrganizationalItem")]
        //private Object organizationalitem;
        //public Object OrganizationalItem
        //{
        //     get { return organizationalitem; }
        //}


		[DataMember(Name="isEditable")]
		private Boolean iseditable;
		public Boolean isEditable
		{
			 get { return iseditable; }
		}


		[DataMember(Name="Filename")]
		private String filename;
		public String Filename
		{
			 get { return filename; }
			 set { filename = value; }
		}


		[DataMember(Name="FileExtension")]
		private String fileextension;
		public String FileExtension
		{
			 get { return fileextension; }
		}


		[DataMember(Name="Publication")]
		private Publication publication;
		public Publication Publication
		{
			 get { return publication; }
		}


		[DataMember(Name="PageTemplate")]
		private PageTemplate pagetemplate;
		public PageTemplate PageTemplate
		{
			 get { return pagetemplate; }
			 set { pagetemplate = value; }
		}


		[DataMember(Name="ComponentPresentations")]
		private ComponentPresentation[] componentpresentations;
		public ComponentPresentation[] ComponentPresentations
		{
			 get { return componentpresentations; }
		}


		[DataMember(Name="MetadataSchema")]
		private Schema metadataschema;
		public Schema MetadataSchema
		{
			 get { return metadataschema; }
			 set { metadataschema = value; }
		}


		[DataMember(Name="MetadataFields")]
		private ItemField[] metadatafields;
		public ItemField[] MetadataFields
		{
			 get { return metadatafields; }
		}


		[DataMember(Name="ApprovalStatus")]
		private ApprovalStatus approvalstatus;
		public ApprovalStatus ApprovalStatus
		{
			 get { return approvalstatus; }
			 set { approvalstatus = value; }
		}


		[DataMember(Name="IsApprovedForTarget")]
		private Boolean isapprovedfortarget;
		public Boolean IsApprovedForTarget
		{
			 get { return isapprovedfortarget; }
		}


        protected override void Initialize(FieldInfo field, PropertyInfo property, Object value)
        {

        }
	}
}

/*
			Tridion.ContentManager.Interop.TDS.Keywords GetKeywords()
			System.String Publish(System.Object, Boolean, Boolean, Boolean, System.DateTime, System.DateTime, System.DateTime, Boolean, Tridion.ContentManager.Interop.TDSDefines.EnumPublishPriority, Boolean, Int32)
			System.String UnPublish(System.Object, Boolean, Boolean, Boolean, System.DateTime, Boolean, Tridion.ContentManager.Interop.TDSDefines.EnumPublishPriority)
			System.String GetListPublishItems(System.Object, Boolean, Boolean, Tridion.ContentManager.Interop.TDSDefines.ListColumnFilter, Tridion.ContentManager.Interop.TDS.ListRowFilter)
			Boolean IsPublishedTo(System.Object)
			Void SetPublishedTo(System.Object, Boolean, System.Object)
			System.String Render(System.String)
			System.String GetSchemaComponentTemplateRelations()
			System.String GetXML(Tridion.ContentManager.Interop.TDSDefines.XMLReadFilter)
			Void UpdateXML(System.String)
			Void Save(Boolean)
			Void Delete()
			Void Localize()
			Void UnLocalize()
			System.String GetVersionList(Tridion.ContentManager.Interop.TDSDefines.ListColumnFilter)
			Void CheckIn(Boolean)
			Void CheckOut(Boolean)
			Void UndoCheckOut(Boolean)
			Void RollBack(Int32, Boolean)
			System.String GetRollBackComment(Int32)
			Void DeleteVersion(Int32)
			System.String Content(System.String)
			System.String GetListKeywords(Tridion.ContentManager.Interop.TDSDefines.ListColumnFilter)
*/
